<?php
	namespace Commom\Model;
	use Think\Model\RelationModel;
	class ArticleModel extends RelationModel{
		protected $tableName="article";//主表名
		protected $_link=array(
			'member'=>array(
					'mapping_type'=>self::HAS_MANY,
					'class_name'=>'member',
					'foreign_key'=>'id',
				),
			// 'category'=>array(
			// 	'mapping_type'=>self::HAS_MANY,
			// 	'class_name'=>'category',
			// 	'foreign_key'=>'id',
			// 	),
			);
	}




?>